package com.reform.service;

import com.reform.pojo.project.ProjectClassification;
import com.baomidou.mybatisplus.extension.service.IService;
import com.reform.res.Result;

import java.sql.SQLException;

/**
 * <p>
 * 项目分类表（专家） 服务类
 * </p>
 *
 * @author mortale
 * @since 2021-07-15
 */
public interface IProjectClassificationService extends IService<ProjectClassification> {

    /**
     * 创建批次
     * @param projectClassification
     * @return
     * @throws SQLException
     */
    Integer creatProjectClassification(ProjectClassification projectClassification);

    /**
     * 修改批次信息
     * @param projectClassification
     * @return
     */
    Integer updateProjectClassification(ProjectClassification projectClassification);

    /**
     * 删除批次信息
     * @param batch_id
     * @return
     */
    Integer deleteProjectClassification(String batch_id) throws SQLException;

    /**
     * 根据batchId获取分类名称
     * @param batchId
     * @return
     * @throws SQLException
     */
    Result getClassificationById(String batchId) throws SQLException;
}
